package com.ang.hutool.excel.complexDemos.data;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.IntStream;

/**
 * 提供数据
 */
public class DataProvider {

    //
    public static List<ClassModel> getClassListData(){
        List<ClassModel> classList = new ArrayList<>();
        IntStream.range(1,10).forEach(i->{

            List<StudentModel> stuList = new ArrayList<>();
            IntStream.range(1,10).forEach(j->{
                StudentModel studentModel = new StudentModel(i,"学生"+i,i);
                stuList.add(studentModel);
            });

            ClassModel classModel = new ClassModel(1,"班级"+i,stuList);
            classList.add(classModel);

        });
        return classList;
    }

}
